import request from '@/utils/request'

// 查询压力容器台账列表
export function listAfVessel(query) {
  return request({
    url: '/security/afVessel/list',
    method: 'get',
    params: query
  })
}

// 查询压力容器台账详细
export function getAfVessel(id) {
  return request({
    url: '/security/afVessel/' + id,
    method: 'get'
  })
}

// 新增压力容器台账
export function addAfVessel(data) {
  return request({
    url: '/security/afVessel',
    method: 'post',
    data: data
  })
}

// 修改压力容器台账
export function updateAfVessel(data) {
  return request({
    url: '/security/afVessel',
    method: 'put',
    data: data
  })
}

// 删除压力容器台账
export function delAfVessel(id) {
  return request({
    url: '/security/afVessel/' + id,
    method: 'delete'
  })
}
